<!--
  Generated template for the PubSportDynamicPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>发布运动动态</ion-title>
  </ion-navbar>

</ion-header>


<ion-content padding="">
  <ion-list>
    <ion-item>
      <ion-textarea placeholder="说点什么吧" type="text" rows="5"></ion-textarea>
    </ion-item>
    <div  style="width: 80px;height: 80px;border: 1px silver dashed;text-align: center">
      <ion-icon [hidden]="lastImage !== null" name="camera" style="font-size: 3rem;margin-top: 20px" (click)="presentActionSheet()"></ion-icon>
      <img src="{{pathForImage(lastImage)}}" style="width:80px;height:80px;" [hidden]="lastImage === null">
    </div>

    <!--<h3 [hidden]="lastImage !== null">请从图片库中选择一个图片。</h3>-->
  </ion-list>
</ion-content>
<ion-footer>
  <ion-toolbar color="primary">
    <ion-buttons>
      <button ion-button icon-left (click)="presentActionSheet()">
        <ion-icon name="camera"></ion-icon>选择...
      </button>
      <button ion-button icon-left (click)="uploadImage()" [disabled]="lastImage === null">
        <ion-icon name="cloud-upload"></ion-icon>上传
      </button>
    </ion-buttons>
